package com.quectel.business.pay.handler.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 业务完整性检查所需参数 需要借助消息队列
 *
 * @author: caolu
 * @email: louis.cao@quectel.com
 * @date: 2023-03-30 13:28:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessIntegrityCheckStrategy {

    /**
     * 默认实例
     */
    public static BusinessIntegrityCheckStrategy DEFAULT = new BusinessIntegrityCheckStrategy(false, 0, 0);

    /**
     * 是否需要业务完整性检查
     */
    private boolean needNotify;

    /**
     * 延迟几秒检查 <=0为立马校验且只校验1次
     */
    private int delaySeconds;

    /**
     * 最多通知几次 <=0为只调用1次
     */
    private int maximumNumberOfNotifications;
}
